/* eslint-disable quotes */
export default [
  {
    url: '/platform/api/story/h5/chat',
    method: 'post',
    response: (req: any) => {
      return {
        code: 0,
        data: {
          message: 'success',
          data: {
            ai_user_id: 1,
            token: 'token_token',
          },
        },
      }
    },
  },
  {
    url: '/platform/api/story/h5/listMsgHistory',
    method: 'post',
    response: (req: any) => {
      return {
        code: 0,
        data: {
          message: 'success',
          data: [
            {
              msg_type: 4001,
              send_time: 111,
              msg_id: 1,
              data: {
                background: "You met her at the college gate and fell in love at first sight，Went to great lengths to get her contact information.But she's been giving you the",
                objective: 'e gate and fell in love at first sigh',
              },
            },
            {
              msg_id: 1,
              msg_type: 100101,
              send_time: 111,
              data: {
                content: 'Lorem ipsum dolor sit amet', // openim TextElem
                intimacy_delta: 5, //亲密度变更
              },
            },
            {
              msg_id: 2,
              msg_type: 100101,
              send_time: 111,
              data: {
                content: 'fuck you', // openim TextElem
                intimacy_delta: -2, //亲密度变更
              },
            },
            {
              msg_id: 3,
              msg_type: 100101,
              send_time: 111,
              data: {
                content: 'love you', // openim TextElem
                intimacy_delta: 10, //亲密度变更
              },
            },
          ],
        },
      }
    },
  },
  {
    url: '/platform/api/story/h5/sendMsg',
    method: 'post',
    response: (req: any) => {
      return {
        code: 0,
        data: {
          ok: true, //是否成功
          msg_id: Math.ceil(Math.random() * 10000),
        },
      }
    },
  },
]
